package org.csu.mypetstoreplus.entity;

import org.csu.mypetstoreplus.vo.OrderVO;

import jakarta.persistence.*;
import lombok.Data;

@Data
@Entity
@Table(name = "orderstatus")
public class OrderStatus
{
    @Id
    @Column(name = "orderid")
    private int orderId;
    @Column(name = "linenum")
    private int lineNum;
    private String timestamp;
    private String status;

    public OrderStatus(OrderVO orderVO) {
        this.orderId = orderVO.getOrderId();
        this.lineNum = orderVO.getOrderId();
        this.timestamp = orderVO.getOrderDate();
        this.status = orderVO.getStatus();
    }

    public OrderStatus() {

    }
}
